package com.gitee.qdbp.general.common.api.settings.service;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.result.IBatchResult;
import com.gitee.qdbp.base.system.model.IAccount;
import com.gitee.qdbp.general.common.api.settings.model.AreaChangedDetails;
import com.gitee.qdbp.general.common.api.settings.model.AreaDivisionWhere;

/**
 * 行政区划批量操作接口
 *
 * @author zhh
 * @version 170702
 */
public interface IAreaDivisionBatch {

    IBatchResult imports(String scene, InputStream is, IAccount me) throws ServiceException;

    void exports(AreaDivisionWhere where, OrderPaging paging, String webroot, OutputStream output)
            throws ServiceException;

    /** 更新为互联网上的最新行政区划 **/
    List<AreaChangedDetails> sync(String scene, IAccount me) throws ServiceException;

}
